package com.adjy.pathbuilders.objects.button.listeners;

import com.adjy.pathbuilders.state.Game;
import com.adjy.pathbuilders.state.GameState;

public class BackToMainMenuButtonListener implements ButtonListener {
	
	private final Game game;
	
	public BackToMainMenuButtonListener(Game game) {
		this.game = game;
	}
	
	@Override
	public void onButtonPressed() {
		game.changeState(GameState.MAIN_MENU);
	}
}